// Common.h
#ifndef COMMON_H 
#define COMMON_H 
#include <windows.h>
#include<vector>

struct Position {
	int x=0;
	int y=0;

};

enum class ItemType {
	FOOD, POISON, BOMB, SNAKE, OBSTACLE,NONE
};

class Common {
public:
	static void gotoxy(int x, int y);
};

enum EffectType {
	GROW,
	SHRINK,
	HALVE,
	NONE,
};

struct GameBasic
{
	int mapWidth;
	int mapHeight;
	bool isSeamless;
	bool isSelfCollision;

	int foodCount;
	int bombCount;
	int poisonCount;
	Position defaultPos;
	std::vector<Position> initFoodPositions;
	std::vector<Position> initPoisonPositions;
	std::vector<Position> initBombPositions;
	std::vector<Position> initObstaclePositions;
	Position initSnakePos;
};

#endif // !COMMON_H

